from machine import Pin
import machine
import esp32
wake1 = Pin(27, mode = Pin.IN,pull=Pin.PULL_DOWN)
esp32.wake_on_ext0(pin = wake1, level = esp32.WAKEUP_ANY_HIGH)
if machine.wake_reason() == 2:
    leds=machine.Pin(14,Pin.IN,Pin.PULL_DOWN)
    from fun import *
    showFast()
else:
    from fun import *
if machine.wake_reason() == 0:
    IIC256.LCDInit()
    IIC256.lcdClean()
    print("poweron")
    showFast()
if machine.wake_reason() == 4:
    showSlow(1)